package com.guodi.model.feign;


import com.guodi.core.tool.api.R;
import com.guodi.model.feign.fallback.SysFallback;
import com.guodi.system.vo.OrgVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 调用字典
 *
 * @author gaozb
 * @date 2022年9月22日10:00:11
 * @since 1.0
 */
@FeignClient(name = "sys-system", fallbackFactory = SysFallback.class)
public interface ISysClientFeign {

    @GetMapping("/dept/list")
    R<List<OrgVO>> deptList(@RequestParam("category") String category, @RequestParam("treeFormat") Boolean treeFormat);
}
